<?php
//自动加载公共类，并生成相应的全局类对象
function framework_class($class_name){
    $file = FRAMEWORK_PATH . "/common/classes/" . $class_name . '.class.php';
    if(is_readable($file)){
        require_once $file;
    }
    
}

function project_class($class_name){
    $file = BASE_PATH . "/common/classes/" . $class_name . '.class.php';
    if(is_readable($file)){
        require_once $file;
    }
}

spl_autoload_register('framework_class');
spl_autoload_register('project_class');
